<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${view.title}</title>
<link rel="stylesheet" href="<c:url value="/"/>css/manage.css" type="text/css" />
</head>
<body>
<div id="top_menu">
<ul>
<li><a href="<c:url value="/"/>admin/update_tour.html?id=${id}&&language=zh_CN">${view.navigationView.chinese}</a></li>
<li><a href="<c:url value="/"/>admin/update_tour.html?id=${id}&&language=en">${view.navigationView.english}</a></li>
</ul>
</div>
<div id="navigation">
<strong>${view.navigationView.position}</strong>
<ol class="navigation">
<li><a href="<c:url value="/"/>admin/manage.html">${view.navigationView.navigationManage}</a></li>
<li><a href="<c:url value="/"/>admin/tour.html">${view.navigationView.navigationTour}</a></li>
<li><a class="current" href="<c:url value="/"/>admin/update_tour.html?id=${id}">${view.navigationView.navigationUpdateTour}</a></li>
</ol>
</div>
<div id="content">
<form action="<c:url value="/"/>admin/update_tour_action.html?id=${id}" method="post">
<table>
<tr>
<td>${view.tourContentView.typeName}</td>
<td>
<select name="typeId">
<c:forEach items="${view.tourTypeList}" var="tourType">
<c:choose>
<c:when test="${tourType.id == typeId}">
<option value="${tourType.id}" selected="selected">${tourType.name}</option>
</c:when>
<c:otherwise>
<option value="${tourType.id}">${tourType.name}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.category}</td>
<td>
<select name="category">
<c:forEach items="${view.categoryList}" var="category">
<c:choose>
<c:when test="${category == categoryValue}">
<option value="${category}" selected="selected">${category}</option>
</c:when>
<c:otherwise>
<option value="${category}">${category}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.subject}</td>
<td><input name="subject" type="text" value="${subject}"/></td>
</tr>
<tr>
<td>${view.tourContentView.comments}</td>
<td><input name="comments" type="text" value="${comments}"/></td>
</tr>
<tr>
<td>${view.tourContentView.aim}</td>
<td><input name="aim" type="text" value="${aim}"/></td>
</tr>
<tr>
<td>${view.tourContentView.characteristic}</td>
<td><input name="characteristic" type="text" value="${characteristic}"/></td>
</tr>
<tr>
<td>${view.tourContentView.location}</td>
<td><input name="location" type="text" value="${location}"/></td>
</tr>
<tr>
<td>${view.tourContentView.days}</td>
<td><input name="days" type="text" value="${days}"/>天</td>
</tr>
<tr>
<td>${view.tourContentView.cost}</td>
<td><input name="cost" type="text" value="${cost}"/>元</td>
</tr>
<tr>
<td>${view.tourContentView.costStandard}</td>
<td>
<textarea rows="10" cols="50" name="costStandard">${costStandard}</textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.costNotice}</td>
<td>
<textarea rows="10" cols="50" name="costNotice">${costNotice}</textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.attention}</td>
<td>
<textarea rows="10" cols="50" name="attention">${attention}</textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.statement}</td>
<td>
<textarea rows="10" cols="50" name="statement">${statement}</textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.isAd}</td>
<td>
<select name="isAd">
<c:choose>
<c:when test="${isAd == 'FALSE'}">
<option value="FALSE" selected="selected">否</option>
</c:when>
<c:otherwise>
<option value="FALSE">否</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${isAd == 'TRUE'}">
<option value="TRUE" selected="selected">是</option>
</c:when>
<c:otherwise>
<option value="TRUE">是</option>
</c:otherwise>
</c:choose>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.adImageUrl}</td>
<td><input name="adImageUrl" type="text" value="${adImageUrl}"/></td>
</tr>
<tr>
<td>${view.tourContentView.isImage}</td>
<td>
<select name="isImage">
<c:choose>
<c:when test="${isImage == 'FALSE'}">
<option value="FALSE" selected="selected">否</option>
</c:when>
<c:otherwise>
<option value="FALSE">否</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${isImage == 'TRUE'}">
<option value="TRUE" selected="selected">是</option>
</c:when>
<c:otherwise>
<option value="TRUE">是</option>
</c:otherwise>
</c:choose>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.imageUrl}</td>
<td><input name="imageUrl" type="text" value="${imageUrl}"/></td>
</tr>
</table>
<input type="submit" value="${view.globalView.update}"/>
</form>
</div>
<table>
<tr>
<td>${view.schedulerContentView.id}</td>
<td>${view.schedulerContentView.name}</td>
<td>${view.schedulerContentView.content}</td>
<td>${view.schedulerContentView.dinner}</td>
<td>${view.schedulerContentView.hotel}</td>
<td>${view.schedulerContentView.comments}</td>
<td>${view.globalView.delete}</td>
</tr>
<c:forEach items="${view.schedulerList}" var="scheduler">
<tr>
<td>${scheduler.id}</td>
<td>${scheduler.name}</td>
<td>${scheduler.content}</td>
<td>${scheduler.dinner}</td>
<td>${scheduler.hotel}</td>
<td>${scheduler.comments}</td>
<td>
<a href="<c:url value="/"/>admin/delete_scheduler_action.html?id=${scheduler.id}&&tourId=${id}">${view.globalView.delete}</a>
</td>
</tr>
</c:forEach>
</table>
<form action="<c:url value="/"/>admin/insert_scheduler_action.html?tourId=${id}" method="post">
<table>
<tr>
<td>${view.schedulerContentView.name}</td>
<td><input type="text" name="name"/></td>
</tr>
<tr>
<td>${view.schedulerContentView.content}</td>
<td>
<textarea rows="10" cols="50" name="content"></textarea>
</td>
</tr>
<tr>
<td>${view.schedulerContentView.dinner}</td>
<td><input type="text" name="dinner"/></td>
</tr>
<tr>
<td>${view.schedulerContentView.hotel}</td>
<td><input type="text" name="hotel"/></td>
</tr>
<tr>
<td>${view.schedulerContentView.comments}</td>
<td><input type="text" name="comments"/></td>
</tr>
</table>
<input type="submit" value="${view.globalView.insert}"/>
</form>
</body>
</html>